home *** CD-ROM | disk | FTP | other *** search
-
-
-
- READLINK(3) MINTLIB LIBRARY FUNCTIONS READLINK(3)
-
-
- N✓NA✓AM✓ME✓E
- readlink - read value of a symbolic link
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- #include <support.h>
-
- ?? int readlink(const char *path, char *buf, int bufsiz); // Should be like this
- int readlink(char *path, char *buf, int bufsiz);
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- readlink places the contents of the symbolic link referred
- to by path in the buffer buf which has size bufsiz. The
- buffer must be large enough to hold the string and the
- terminating null.
-
- R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
- readlink returns the number of characters placed in the
- buffer, minus the terminating zero. On failure, it returns
- -1 and sets errno to indicate the error.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- l✓ls✓st✓ta✓at✓t(✓(3✓3)✓),✓, s✓sy✓ym✓ml✓li✓in✓nk✓k(✓(3✓3)✓),✓, F✓Fr✓re✓ea✓ad✓dl✓li✓in✓nk✓k(✓(2✓2)✓)
-
- N✓NO✓OT✓TE✓ES✓S
- On UN*X, the contents of the buffer is not null-
- terminated; the size of the buffer as passed to the read-
- link call is therefore off by one when compared to the
- mintlibs. It is unlikely that this would ever be a prob-
- lem.
-
- MS-DOS (TOS) file-systems do not support symbolic links.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MiNT docs 0.1 3 March 1993 1
-
-
-